package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;
import com.itheima.pojo.Menu;

import java.util.List;
import java.util.Map;

public interface MemberService {

    /**
     * 根据手机号查询会员信息
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /**
     * 保存会员信息
     * @param member
     */
    void add(Member member);

    /**
     * 查询集合中每个月的会员数量
     * @param months
     * @return
     */
    List<Integer> findMemberCountByMonth(List<String> months);

    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
    PageResult pageQuery(QueryPageBean queryPageBean);

    Member findById(Integer id);
    Member findByIdString(String id);

    void update(Member member);

    void deleteById(Integer id);

    Member selectMemberCountSetmeal(String s);


    /**
     * 根据年龄查找会员
     * @return
     */
    List<Map<String,Object>> findMemberByAge();
}
